package threadLocal;

public class T2Dao {

    public void update() {
        //取出threadLocal1对象关联的对象
        Object obj = ThreadLocalTest.threadLocal1.get();
        //获取当前线程名
        String name = Thread.currentThread().getName();
        System.out.println("在T2Dao的update() 线程是 = " + name
                            + " dog = " + obj);
    }
}
